Instead, override the asynchronous version to avoid conflicting with
the parent signature.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2040>
animation = new Animation({ file: params.file });
- animation.load(() => {
+ animation.load_async(null, () => {
this._animations[params.settingsSchema] = animation;
if (params.onLoaded) {
this.loaded = false;
}
- load(callback) {
- this.load_async(null, () => {
+ // eslint-disable-next-line camelcase
+ load_async(cancellable, callback) {
+ super.load_async(cancellable, () => {
this.loaded = true;
- if (callback)
- callback();
+
+ callback?.();
});
}